//
//  YHNetLogManager.h
//  SoYoungMobile40
//
//  Created by Jeakon on 17/2/17.
//  Copyright © 2017年 soyoung. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JKDBModel.h"

extern NSString *const xm_NOTIFICATION_NETLOG_CHANGED; // 网络日志变化


@interface YHNetLogModel : JKDBModel

@property (nonatomic, copy) NSString *date;
@property (nonatomic, copy) NSString *url;
@property (nonatomic, copy) NSString *response;
@property (nonatomic, copy) NSString *param;
@property (nonatomic, assign) BOOL success;

@end


@interface YHNetLogManager : NSObject

+ (instancetype)sharedInstance;

/// 添加日志(存储)
- (void)addLog:(YHNetLogModel *)log;

/// 获取日志
- (NSArray<YHNetLogModel *> *)logs;

/// 删除日志
- (void)deleteAllLogs;

@end
